package com.springboot_blog.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

/**
 * 角色DTO
 */
@Data
@Schema(description = "角色DTO")
public class RoleDTO {

    @Schema(description = "角色名称", example = "管理员", requiredMode = Schema.RequiredMode.REQUIRED)
    private String roleName;

    @Schema(description = "角色编码", example = "ADMIN", requiredMode = Schema.RequiredMode.REQUIRED)
    private String roleCode;


    @Schema(description = "角色描述", example = "系统管理员角色")
    private String description;

    @Schema(description = "排序权重", example = "1")
    private Integer sort;


    @Schema(description = "状态：1-启用，0-禁用", example = "1", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer status;

    @Schema(description = "当前页码", example = "1")
    private Long current = 1L;

    @Schema(description = "每页大小", example = "10")
    private Long size = 10L;
}
